package org.demo.patten.bridge;

/**
 * @author zhuj
 * @date 2025/3/22
 * @apiNote
 * 桥接模式
 */
public class Client {
    public static void main(String[] args) {
        MessageSender sender = new SmsSender();
        Message msg = new UrgentMessage(sender);
        msg.send("服务器宕机！");

        MessageSender emailSender = new EmailSender();
        Message emailMsg = new NormalMessage(emailSender);
        emailMsg.send("电视机无信号！");
    }
}
